//
//  InfoListTableViewCell.m
//  MobileOffice
//
//  Created by jjkj on 16/12/6.
//  Copyright © 2016年 liaoningjujin. All rights reserved.
//

#import "InfoListTableViewCell.h"

@implementation InfoListTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.myTitleLabel=[MyControl creatLabelWithFrame:CGRectMake(8 ,0 ,60, 56) text:@""];
        self.myTitleLabel.font=FONT_15;
        //self.myTitleLabel.textAlignment=NSTextAlignmentCenter;
        [self.contentView addSubview:self.myTitleLabel];
        
        self.maxMessageLabel=[MyControl creatLabelWithFrame:CGRectMake(self.myTitleLabel.x+self.myTitleLabel.width ,8 ,IPHONE_WIDTH-(self.myTitleLabel.x+self.myTitleLabel.width)-90, 20) text:@""];
        self.maxMessageLabel.font=FONT_12;
        //self.myTitleLabel.textAlignment=NSTextAlignmentCenter;
        [self.contentView addSubview:self.maxMessageLabel];
        
        self.minMessageLabel=[MyControl creatLabelWithFrame:CGRectMake(self.myTitleLabel.x+self.myTitleLabel.width ,self.maxMessageLabel.y+self.maxMessageLabel.height ,self.maxMessageLabel.width, 20) text:@""];
        self.minMessageLabel.font=FONT_12;
        //self.myTitleLabel.textAlignment=NSTextAlignmentCenter;
        [self.contentView addSubview:self.minMessageLabel];
        
        self.countLabel=[MyControl creatLabelWithFrame:CGRectMake(self.maxMessageLabel.x+self.maxMessageLabel.width ,0 ,60, 56) text:@""];
        self.countLabel.font=FONT_12;
        self.countLabel.textAlignment=NSTextAlignmentCenter;
        [self.contentView addSubview:self.countLabel];
        
        _lineLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, 55, IPHONE_WIDTH, 1)];
        _lineLabel.backgroundColor=BACKCOLOR_GRAY;
        [self.contentView addSubview:_lineLabel];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
